import { ApiProperty } from '@nestjs/swagger';
import { Column, Entity } from 'typeorm';
import { BaseEntity } from '../../../base.entity';

@Entity({ name: 'base_shift_user' })
export default class BaseShiftUser extends BaseEntity {
  @Column({ type: 'varchar', length: 50, name: 'shift_code', comment: '班组编码' })
  @ApiProperty()
  shiftCode: string;

  @Column({ name: 'user_id', comment: '用户ID', type: 'varchar' })
  @ApiProperty()
  userId: string;

  @Column({ name: 'work_type_code', comment: '岗位编码', type: 'varchar' })
  @ApiProperty()
  workTypeCode: string;
}
